package com.zhiteng.vo;

public class AdjustAndLeaveAndSub {
	private Long id;
	private String grade_name;// 原年级
	private String old_class; // 原班级
	private String teacher_name;// 老师的的名
	private Integer total_course; // 请假的总课时
	private Integer adjustNum;// 调课数
	private Integer petitioner_adjustNum;// 被调课数
	private Integer substituteNum;// 代课数
	private Integer petitioner_substituteNum;// 被代课数

	public AdjustAndLeaveAndSub() {
		super();
		// TODO Auto-generated constructor stub
	}

	public AdjustAndLeaveAndSub(Long id, String grade_name, String old_class, String teacher_name, Integer total_course,
			Integer adjustNum, Integer petitioner_adjustNum, Integer substituteNum, Integer petitioner_substituteNum) {
		super();
		this.id = id;
		this.grade_name = grade_name;
		this.old_class = old_class;
		this.teacher_name = teacher_name;
		this.total_course = total_course;
		this.adjustNum = adjustNum;
		this.petitioner_adjustNum = petitioner_adjustNum;
		this.substituteNum = substituteNum;
		this.petitioner_substituteNum = petitioner_substituteNum;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getGrade_name() {
		return grade_name;
	}

	public void setGrade_name(String grade_name) {
		this.grade_name = grade_name;
	}

	public String getOld_class() {
		return old_class;
	}

	public void setOld_class(String old_class) {
		this.old_class = old_class;
	}

	public String getTeacher_name() {
		return teacher_name;
	}

	public void setTeacher_name(String teacher_name) {
		this.teacher_name = teacher_name;
	}

	public Integer getTotal_course() {
		return total_course;
	}

	public void setTotal_course(Integer total_course) {
		this.total_course = total_course;
	}

	public Integer getAdjustNum() {
		return adjustNum;
	}

	public void setAdjustNum(Integer adjustNum) {
		this.adjustNum = adjustNum;
	}

	public Integer getPetitioner_adjustNum() {
		return petitioner_adjustNum;
	}

	public void setPetitioner_adjustNum(Integer petitioner_adjustNum) {
		this.petitioner_adjustNum = petitioner_adjustNum;
	}

	public Integer getSubstituteNum() {
		return substituteNum;
	}

	public void setSubstituteNum(Integer substituteNum) {
		this.substituteNum = substituteNum;
	}

	public Integer getPetitioner_substituteNum() {
		return petitioner_substituteNum;
	}

	public void setPetitioner_substituteNum(Integer petitioner_substituteNum) {
		this.petitioner_substituteNum = petitioner_substituteNum;
	}

	@Override
	public String toString() {
		return "AdjustAndLeaveAndSub [id=" + id + ", grade_name=" + grade_name + ", old_class=" + old_class
				+ ", teacher_name=" + teacher_name + ", total_course=" + total_course + ", adjustNum=" + adjustNum
				+ ", petitioner_adjustNum=" + petitioner_adjustNum + ", substituteNum=" + substituteNum
				+ ", petitioner_substituteNum=" + petitioner_substituteNum + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((adjustNum == null) ? 0 : adjustNum.hashCode());
		result = prime * result + ((grade_name == null) ? 0 : grade_name.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((old_class == null) ? 0 : old_class.hashCode());
		result = prime * result + ((petitioner_adjustNum == null) ? 0 : petitioner_adjustNum.hashCode());
		result = prime * result + ((petitioner_substituteNum == null) ? 0 : petitioner_substituteNum.hashCode());
		result = prime * result + ((substituteNum == null) ? 0 : substituteNum.hashCode());
		result = prime * result + ((teacher_name == null) ? 0 : teacher_name.hashCode());
		result = prime * result + ((total_course == null) ? 0 : total_course.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AdjustAndLeaveAndSub other = (AdjustAndLeaveAndSub) obj;
		if (adjustNum == null) {
			if (other.adjustNum != null)
				return false;
		} else if (!adjustNum.equals(other.adjustNum))
			return false;
		if (grade_name == null) {
			if (other.grade_name != null)
				return false;
		} else if (!grade_name.equals(other.grade_name))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (old_class == null) {
			if (other.old_class != null)
				return false;
		} else if (!old_class.equals(other.old_class))
			return false;
		if (petitioner_adjustNum == null) {
			if (other.petitioner_adjustNum != null)
				return false;
		} else if (!petitioner_adjustNum.equals(other.petitioner_adjustNum))
			return false;
		if (petitioner_substituteNum == null) {
			if (other.petitioner_substituteNum != null)
				return false;
		} else if (!petitioner_substituteNum.equals(other.petitioner_substituteNum))
			return false;
		if (substituteNum == null) {
			if (other.substituteNum != null)
				return false;
		} else if (!substituteNum.equals(other.substituteNum))
			return false;
		if (teacher_name == null) {
			if (other.teacher_name != null)
				return false;
		} else if (!teacher_name.equals(other.teacher_name))
			return false;
		if (total_course == null) {
			if (other.total_course != null)
				return false;
		} else if (!total_course.equals(other.total_course))
			return false;
		return true;
	}

}
